class {

    setEvent(event) {
        this.event = event;
    }
}

<div key="root" on-Custom-Event('setEvent')>
    Hello
</div>
